﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace STS
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

           
            if(Main.idroli==1)
            {
                Master.FindControl("NavigationMenu").Visible = false;
                Master.FindControl("NavigationMenuR").Visible = true;
                Master.FindControl("NavigationMenu1").Visible = false;
                if (Main.haslo == "sts")
                {
                    Response.Redirect("~/Account/profil.aspx");
                }
            }
            if (Main.idroli == 3)
            {
                Master.FindControl("NavigationMenu").Visible = true;
                Master.FindControl("NavigationMenuR").Visible = false;
                Master.FindControl("NavigationMenu0").Visible = false;
                Master.FindControl("NavigationMenu1").Visible = false;
                if (Main.haslo == "sts")
                {
                    Response.Redirect("~/Account/profil.aspx");
                }
            }
            if (Main.idroli == 4)
            {
                Master.FindControl("NavigationMenu").Visible = false;
                Master.FindControl("NavigationMenuR").Visible = false;
                Master.FindControl("NavigationMenu0").Visible = true;
                Master.FindControl("NavigationMenu1").Visible = false;
                if (Main.haslo == "sts")
                {
                    Response.Redirect("~/Account/profil.aspx");
                }
            }
            if (Main.idroli == 5)
            {
                Master.FindControl("NavigationMenu").Visible = false;
                Master.FindControl("NavigationMenuR").Visible = false;
                Master.FindControl("NavigationMenu0").Visible = false;
                Master.FindControl("NavigationMenu1").Visible = true;
                if (Main.haslo == "sts")
                {
                    Response.Redirect("~/Account/profil.aspx");
                }
            }

           
        }
    }
}
